summaryrefslogtreecommitdiff
path: root/app/[lng]
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-24 20:01:16 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-24 20:01:16 +0900
commit91bd6946a585f489f0ac0d98a5a1968c6550bee9 (patch)
tree1e4d2950b8cd42bdcdf1c94228e0f5ff11a1f904 /app/[lng]
parentd4af641e8b7a144b2c61e7b9d68e7918bd46cc1e (diff)
(김준회) fix: params (Promixe) 를 await 하도록 비동기 함수로 변경
Diffstat (limited to 'app/[lng]')
-rw-r--r--app/[lng]/evcp/data-room/[projectId]/files/page.tsx5
-rw-r--r--app/[lng]/evcp/data-room/[projectId]/layout.tsx8
2 files changed, 7 insertions, 6 deletions
diff --git a/app/[lng]/evcp/data-room/[projectId]/files/page.tsx b/app/[lng]/evcp/data-room/[projectId]/files/page.tsx
index baac96ad..8e07d2b4 100644
--- a/app/[lng]/evcp/data-room/[projectId]/files/page.tsx
+++ b/app/[lng]/evcp/data-room/[projectId]/files/page.tsx
@@ -4,10 +4,9 @@ import { FileManager } from '@/components/file-manager/FileManager';
export default async function ProjectFilesPage({
params,
}: {
- params: { projectId: string };
+ params: Promise<{ projectId: string }>;
}) {
-
- const projectId = await params.projectId
+ const { projectId } = await params;
return (
<div className="h-full flex flex-col">
diff --git a/app/[lng]/evcp/data-room/[projectId]/layout.tsx b/app/[lng]/evcp/data-room/[projectId]/layout.tsx
index d2e74f8e..16dd4817 100644
--- a/app/[lng]/evcp/data-room/[projectId]/layout.tsx
+++ b/app/[lng]/evcp/data-room/[projectId]/layout.tsx
@@ -1,16 +1,18 @@
// app/projects/[projectId]/layout.tsx
import { ProjectNav } from '@/components/project/ProjectNav';
-export default function ProjectLayout({
+export default async function ProjectLayout({
children,
params,
}: {
children: React.ReactNode;
- params: { projectId: string };
+ params: Promise<{ projectId: string }>;
}) {
+ const resolvedParams = await params;
+
return (
<div className="flex flex-col h-full">
- <ProjectNav projectId={params.projectId} />
+ <ProjectNav projectId={resolvedParams.projectId} />
<div className="flex-1 overflow-y-auto">
{children}
</div>